import request from '../utils/request'

export function getList(params) {
  return request.ajax({
      url: `/comment/list`,
      method: 'post',
      params
  })
} 
export function getInfo(id) {
  return request.ajax({
      url: `/comment/${id}`,
      method: 'post'
  })
} 
export function create(params) {
  return request.ajax({
      url: `/comment`,
      method: 'post',
      isJson:true,
      loading:true,
      params
  })
} 